package study.java.thread02;

/**
* @Name: MyRunnabelDemo
* @Description: 多线程测试类调用类
* @Author: 李超	lc_jack@foxmail.com
* @CreateDate: 2017-1-8 下午9:42:14 
* @Version: V1.0
 */
public class MyRunnabelDemo {
	
	public static void main(String[] args) {
		MyRunnabel mr = new MyRunnabel() ;
		//创建Thread类对象，并把Runnable接口实现类对象作为构造参数传入；
//		Thread t1 = new Thread(mr) ;
//		Thread t2 = new Thread(mr) ;
//		t1.setName("张三") ;
//		t2.setName("李四") ;
		Thread t1 = new Thread(mr, "张三") ;
		Thread t2 = new Thread(mr, "李思思") ;
		t1.start() ;
		t2.start() ;
	}

}
